using System;
using NMock2.Actions;
using NMock2.Monitoring;

namespace NMock2
{
   

    /// <summary>
    /// short cut to initialize GetArgumentAction
    /// </summary>
    public class GetArguments
    {
        /// <summary>
        /// Create a GetArgumentAction to get arments of invoked method
        /// </summary>
        /// <param name="handler">delegate used to get argments of executed method</param>
        /// <returns></returns>
        public static GetArgumentsAction WhenCalled(Action<ParameterList> handler)
        {
            return  new GetArgumentsAction(handler);
        }
    }
}